<style type="text/css">
<!--
body,td,th {
	font-family: Arial, Helvetica, sans-serif;
}
-->
</style>
<?php 

include "config.php";
$displaytype = "publisher";

require_once "lib/tb_functions.php";
$config="tbconfig";

$tb_config = ReadConfig($config);

require_once "../web4/dbconfigpublic.php";

try {
        $curr_roomid=intval($_GET["roomid"]);
}
catch (Exception $e )
{
        exit;
}

$query = "SELECT *,date_format(nextevent,\"%M %e %h%p\")as ne1 from discussroom where published=1 and id=$curr_roomid";
$result = mysql_query($query,$db) or die (" died on query: ". $query);
$row_count = mysql_num_rows ( $result);
if ( $row_count <=0 )
        exit;
$myrow = mysql_fetch_array($result);


$tb_config["SESSIONID"] =$myrow["sessionid"];
$tb_config["TOKEN"] =$myrow["token"];



$tokboxsessionid = $tb_config["SESSIONID"];
//$tokboxpartnerid =  API_Config::API_KEY;
$tokboxtoken = $tb_config["TOKEN"];

//$doc =& JFactory::getDocument();
//$headdata= $doc->getHeadData();
//$keywords=$headdata["discription"];
//$keywords=$doc->getMetadata("keywords");
//$location_of_character = strrpos($keywords,"TOKBOX");
//print "$keywords:$location_of_character";

//print "$tokboxsessionid<br>";
//print "$tokboxtoken<br>";

//$tokboxpartnerid = "4495";
//$tokboxsessionid = "189327b35161a0fbaf05d96504bb9684ee1007df";

list($videowidth,$videoheight)=explode("X",$tb_config["CS"],2);


if ( $displaytype == "publisher" )
	include ('lib/publisher.php');
else
	include ('lib/subscriber.php');

?>
